﻿/*********************************************************
** File Name:	SystemParameter.cs
** Copyright (C) 2010 hiSoft ITDC. All right reserved.
** Creator:	Lionel Li
** Create date:	2010-05-24
** Modifier:	
** Modify date:	
** Description:	系统级参数、变量
*********************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace Common
{
    public class SystemParameter
    {
        /// <summary>
        /// 系统日期格式
        /// </summary>
        public static string DATE_FORMAT = "yyyy-MM-dd";

        /// <summary>
        /// 时间格式
        /// </summary>
        public static string DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

        /// <summary>
        /// 多语言消息类名
        /// </summary>
        public static string MSG_RESOURCE_NAME = "MsgResources";

        /// <summary>
        /// 系统管理员邮件地址
        /// </summary>
        public static string ADMINISTRATOR_EMAIL = "";

        /// <summary>
        /// 系统站点的根目录URL（内网）
        /// </summary>
        public static string APPLICATION_ROOT_URL = "";

        /// <summary>
        /// 系统站点的根目录URL（外网）
        /// </summary>
        public static string APPLICATION_ROOT_URL_INTERNET = "";

        /// <summary>
        /// 登录系统时是否需要验证密码，Y：需要验证，N：不需要验证
        /// </summary>
        public static string LOGIN_PASSWORD_VALIDATION = "N";

        /// <summary>
        /// 管理员调试或查问题的万能密码（加密字符串）
        /// </summary>
        public static string LOGIN_PASSWORD_FOR_ADMIN = "";

        /// <summary>
        /// 当前版本
        /// </summary>
        public static string CURRENT_VERSION = "";

        /// <summary>
        /// 任务结束日期前N天发送alert mail – mail to 任务owner
        /// </summary>
        public const string TASKOVERALERTMAILAGO = "D6414DBC-DD5D-44CC-8C2E-7BBC4CEB7D39";

        /// <summary>
        /// 任务开始日期当天发送notice mail – mail to 任务owner
        /// </summary>
        public const string TASKBEGINALERTMAILTODAY = "C9020719-86B6-487C-827F-2B193009632D";

        /// <summary>
        /// 任务结束日期当前发送alert mail – mail to 任务owner
        /// </summary>
        public const string TASKOVERALERTMAILTODAY = "2C0A5283-B39B-4D3F-82C9-AC7899987FCB";

        /// <summary>
        /// 任务结束日期之后每天发送delay mail – mail to 任务owner和项目经理
        /// </summary>
        public const string TASKOVERALERTMAILVERYDAY = "978883F1-332F-492A-B684-E338794E502D";

        /// <summary>
        /// 任务状态更新后发送notice mail – mail to项目经理
        /// </summary>
        public const string TASKUPDATENOTICEMAIL = "AEE931AF-4D2E-406E-B608-21D1EEF75B44";

        /// <summary>
        /// 任务状态更新发布后发送notice mail – mail to 任务owner
        /// </summary>
        public const string TASKAPPROVEDNOTICEMAIL = "573ECE6D-7981-4321-952D-1CE4F9EBF06E";

        /// <summary>
        /// Timesheet被拒绝时的mail提醒
        /// </summary>
        public const string TIMESHEETREJECTNOTICEMAIL_MAILCODE = "005";

        /// <summary>
        /// 给Vendor发送PO信息的邮件提醒
        /// </summary>
        public const string VENDORPOMAIL_MAILCODE = "007";
        /// <summary>
        /// po discount 提醒
        /// </summary>
        public const string VENDORPODiscountMAIL_MAILCODE = "020";

        /// <summary>
        /// 项目状态变化时的邮件提醒
        /// </summary>
        public const string PROJECTSTATUSCHANGEDMAIL_MAILCODE = "002";

        /// <summary>
        /// 给Vendor发送任务的提醒mail
        /// </summary>
        public const string VENDORTASKNOTICE_MAILCODE = "011";

        /// <summary>
        /// Vendor对任务的更新提醒PM
        /// </summary>
        public const string VENDORTASKUPDATE_MAILCODE = "012";

        /// <summary>
        /// System Error Mail
        /// </summary>
        public const string SYSTEMERROR_MAILCODE = "001";

        /// <summary>
        /// Customer Price List失效时提醒邮件
        /// </summary>
        public const string CUSTOMERPRICEOUTOFDATE_MAILCODE = "013";

        /// <summary>
        /// Vendor Price List失效时提醒邮件
        /// </summary>
        public const string VENDORPRICEOUTOFDATE_MAILCODE = "014";

        /// <summary>
        /// PO waiting approved 提醒
        /// </summary>
        public const string VENDORPOWAITINGAPPROVED_MAILCODE = "021";

        /// <summary>
        /// TimeSheet waiting Complete 未填满8小时工时的人员发送提醒邮件
        /// </summary>
        public const string TIMESHEETWAITINGCOMPLETE_MAILCODE = "022";

        /// <summary>
        /// TimeSheet waiting Complete 未填满8小时工时的人员发送提醒邮件
        /// </summary>
        public const string ALLTIMESHEETWAITINGCOMPLETE_MAILCODE = "023";

        /// <summary>
        /// TimeSheet waiting Complete 未填满8小时工时的人员发送提醒邮件
        /// </summary>
        public const string NOONTIMESHEETWAITINGCOMPLETE_MAILCODE = "024";

        /// <summary>
        /// PM将Vendor Task置为完成时，自动发送邮件给这个Task的Vendor，并CC给PM自己
        /// </summary>
        public const string VENDORTASKCOMPLETEWAITINGINVOICE_MAILCODE = "026";


        /// <summary>
        /// PM将Vendor Task置为完成时，自动发送邮件给将评估信息发送给VPM  Add by ghy 
        /// </summary>
        public const string VENDORTASKCOMPLETESENTVPM_MAILCODE = "030";

        /// <summary>
        ///  每个月的月底发邮件提醒PM还有多少工时没有填写
        /// </summary>
        public const string MONTHUPTIMESHEETWAITINGCOMPLETE_MAILCODE = "029";
    }
}
